<!--tabs-->
<template>
  <div class="tabs_box">
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane
        v-for="(item, index) in tabList"
        :label="item.name"
        :name="item.value.toString()"
        :key="index"
      >
        <slot name="tabs"></slot>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>
<script>
export default {
  props: {
    tabList: {
      type: Array,
      default: () => []
    }
  },
  data () {
    return {
      activeName: 0
    }
  },
  methods: {
    handleClick () {

    }
  }
}
</script>
<style lang="scss" scoped>
</style>